<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="java.util.*, com.model.*, com.javabean.*;"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
	String docName = request.getParameter("docName");
	//System.out.println(docName);
	if(docName == null)
		docName = "";
	else
		docName = new String(docName.getBytes("ISO-8859-1"), "UTF-8");
	//System.out.println(docName);
	SearchDocByWhich sbo = new SearchDocByWhich();
	Vector v = sbo.searchDocByDocName(docName);
	//System.out.println(v);
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>房产公司工程档案管理系统</title>
<script type="text/javascript" src="../js/jquery-1.9.0.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/DsearchByKeyword.css" />
</head>

<body >

		<form action="DsearchByKeyword.jsp" method="post" name="form">
			<div class="DocList">
				<div class="DIV1">
				
					<div class="DIV2">
						<input id="return" name="return" class="return" type="button" onclick="javascript:location.href='DocSearch.jsp'"/>
					</div>
					<div class="DIV3">
						<table width="500" height="30" border="3" align="center" bgcolor="white" >
				           <tr align="center" height="30"><td>序号</td><td>文件名</td><td>上传日期</td><td>操作</td></tr>
	                       <%
						if(v != null){
							Iterator docV = v.iterator(); 
							int i = 1;
							while(docV.hasNext()){
								Doc doc = (Doc)docV.next();
						%>
							
								<tr align="center"  height="30">
									<td><%= i %></td>
									<td><%= doc.getDocName()%></td>
									<td><%= doc.getDocDateOfUp()%></td>
									<td></td>
								</tr>
						<%
								i++;
							}
						}
						%>

			           </table>
	
					</div>
					
					<div class="DIV4">
						 <input name="docName" class="docName" type="text" />
					</div>
					
					<div class="DIV5">
						<input id="search" name="search" class="search" type="button" onclick="document.form.submit();"/>
					</div>
		
				</div>
			</div>

		</form>

</body>
</html>
</html>